'use client'

import FXCanvas from '@/components/effect/FXCanvas'

export default function LiveInsights() {
  const cards = [
    'Critical news that may affect company outlook.',
    'Third-party market data and proxy models that triangulate TAM / SAM / CAGR.',
    'Live competitor mapping to gauge positioning and product-market fit.',
    'Independent verification for major claims and traction figures.'
  ]

  return (
    <div className="relative min-h-[92svh] h-auto w-full overflow-hidden flex items-center justify-center">
      <div className="section-accent accent-2 absolute inset-0 z-0 h-full w-full"></div>

      <div className="fx h-full w-full">
        <FXCanvas effect="comets" />
      </div>

      <div className="inset-0 z-10 flex items-center justify-center">
        <div className="max-w-6xl mx-auto">
          <div className="relative w-full text-gray-300 py-32 px-6 md:px-20 overflow-hidden">
            <div className="mx-auto max-w-7xl grid md:grid-cols-2 gap-16 items-center">
              {/* 左侧标题部分 */}
              <div>
                <div className="text-[44px] font-bold text-white leading-tight mb-4">
                  Live insights
                  <br />
                  <span className="bg-gradient-to-r from-[#8b5cf6] to-[#38bdf8] text-transparent bg-clip-text">
                    beyond the
                  </span>
                  <br />
                  <span className="bg-gradient-to-r from-[#8b5cf6] to-[#38bdf8] text-transparent bg-clip-text">
                    deck
                  </span>
                </div>
                <p className="text-[18px] text-gray-400 max-w-xl">
                  Verified data, live market proxies, and competitor signals anchor every recommendation in reality.
                </p>
              </div>

              {/* 右侧卡片部分 */}
              <div className="flex flex-col gap-4">
                {cards.map((text, index) => (
                  <div
                    key={index}
                    className="relative flex items-start gap-3 rounded-2xl px-6 py-5 text-base text-gray-300
      bg-[#101622] border-solid border-gray-800 overflow-hidden
      shadow-[0_0_10px_rgba(255,255,255,0.03)]
      transition-all duration-500 ease-[cubic-bezier(0.4,0,0.2,1)]
      hover:-translate-y-[3px] hover:border-[#7C5CFF99] hover:border-2 hover:border-solid hover:shadow-[0_0_25px_rgba(56,189,248,0.25)]">
                    {/* 卡片内容 */}
                    <div className="relative flex items-start gap-3 z-10">
                      <span className="text-[#38bdf8] mt-1 transition-transform duration-500 ease-out group-hover:scale-110">
                        ✓
                      </span>
                      <span>{text}</span>
                    </div>
                  </div>
                ))}
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  )
}
